﻿#region Imports

using System;

#endregion

namespace Backend.Services
{

    /// <summary>
    /// Defines the functionality of navigation services for SharePoint.
    /// </summary>
    public interface INavigationService
    {

        #region Methods - Instance Member

        /// <summary>
        /// Navigates to the requesting view.
        /// </summary>
        void NavigateToRequestingView();

        /// <summary>
        /// Navigates to the error view, displaying the specified exception.
        /// </summary>
        /// <param name="exception">
        /// The exception to be displayed on the error page.
        /// </param>
        void NavigateToErrorView(Exception exception);

        /// <summary>
        /// Navigates to the error view, displaying the specified message.
        /// </summary>
        /// <param name="message">
        /// The message to be displayed on the error page.
        /// </param>
        void NavigateToErrorView(string message);

        #endregion

    }

}
